Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core/Unit: Fix removal of auras on evade issues #14771

Closed
wants to merge 1 commit into from
Closed

Core/Unit: Fix removal of auras on evade issues #14771

wants to merge 1 commit into from

Conversation

mik1893
Copy link
Contributor

@mik1893 mik1893 commented May 26, 2015

closes #14347

@mik1893
Copy link
Contributor Author

mik1893 commented May 26, 2015

Kilyana is testing it now to check the if validity covers all cases

Aura const* aura = aurApp->GetBase();

if (!aura->IsPassive() && !aurApp->IsPositive() // all negative, non - passive auras,
&& !(aura->GetSpellInfo()->AttributesEx3 & SPELL_ATTR3_DEATH_PERSISTENT) && // non death-persistent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!aura->GetSpellInfo()->HasAttribute(SPELL_ATTR3_DEATH_PERSISTENT)

@Killyana
Copy link
Member

It fix the issue as intended but in some cases like Festergut and Putricide the auras are not removed after a reset.
auras:
id: 69166 [Inhaled Blight] for Festergut
id: 71603 [Mutated Strength] and id: 71604 [Mutated Strength] for Putricide
probably many other bosses are affected.

EDIT: Fixed, auras are now removed on rest

SPELL_ATTR3_REQ_OFFHAND = 0x01000000, // 24 Req offhand weapon
SPELL_ATTR3_UNK25 = 0x02000000, // 25 no cause spell pushback ?
SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED = 0x04000000, // 26 auras with this attribute can proc from triggered spell casts with SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2 (67736 + 52999)
SPELL_ATTR3_DRAIN_SOUL = 0x08000000, // 27 only drain soul has this flag
SPELL_ATTR3_UNK28 = 0x10000000, // 28
SPELL_ATTR3_ENRAGE = 0x10000000, // 28 flag used for creature enrage abilities (61632,26662 for example)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think so. http://paste2.org/I2I2whck

@mik1893
Copy link
Contributor Author

mik1893 commented May 26, 2015

probably a method to get the Enrage spells should be implemented, or a way to call this with a parameter from bosses (@MitchesD add your thoughts)

@Killyana
Copy link
Member

@mik1893
Issue with id: 71704 [Create Concoction] "putricide transformation" it's not removed on evade, but removed on death, it must be the opposite.

@mik1893
Copy link
Contributor Author

mik1893 commented May 26, 2015

Attributes: 0x20000100 (SPELL_ATTR0_HIDE_IN_COMBAT_LOG, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY)
AttributesEx1: 0x10000000 (SPELL_ATTR1_DONT_DISPLAY_IN_AURA_BAR)
AttributesEx3: 0x10000000 (SPELL_ATTR3_UNK28)
AttributesEx6: 0x01000000 (SPELL_ATTR6_CAN_TARGET_UNTARGETABLE)

it's should be removed on both cases, but it's an exception. It's difficult to find a common rule for this, the only way i think about is that this behaviour should be applied when it's a non-boss creature, and bosses just gets all auras removed on evade (like it was before basically).

I will try to make a more generic solution for this

@Killyana
Copy link
Member

According to this video https://youtu.be/IzPe9MeaUU4?t=4m11s the aura persist after death.

@mik1893
Copy link
Contributor Author

mik1893 commented May 26, 2015

ok so this aura is missing the attribute DEATH_PERSISTANT.

@mik1893
Copy link
Contributor Author

mik1893 commented May 26, 2015

for the removal on evade, this is an exception and should be handled in boss spellscript

@@ -407,7 +407,7 @@ enum SpellAttr3
SPELL_ATTR3_DEATH_PERSISTENT = 0x00100000, // 20 Death persistent spells
SPELL_ATTR3_UNK21 = 0x00200000, // 21 unused
SPELL_ATTR3_REQ_WAND = 0x00400000, // 22 Req wand
SPELL_ATTR3_UNK23 = 0x00800000, // 23
SPELL_ATTR3_UNK23 = 0x00800000, // 23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the space at the end.

@ccrs
Copy link
Member

ccrs commented Jun 7, 2015

some auras on sindragosa arent removed too (must check for raid mode entries)

@Rushor
Copy link
Contributor

Rushor commented Jun 7, 2015

someone has to check at least every bossfight and check the remove of the auras on evade

@ccrs
Copy link
Member

ccrs commented Jun 7, 2015

confirm this problem in lanathel too

@Killyana
Copy link
Member

Killyana commented Jun 7, 2015

I don't know if it's possible to do: removing auras that result from spells casted during the combat, this will fix all the issues.

@mik1893
Copy link
Contributor Author

mik1893 commented Jun 8, 2015

i'm thinking.... i don't think there's a way to get spells casted during combat, but we might add a property for this

@mik1893
Copy link
Contributor Author

mik1893 commented Jun 8, 2015

I added a property on aura to know if it was added on spawn from creature_addon
test now if it works properly

@ccrs
Copy link
Member

ccrs commented Jun 8, 2015

"removing auras that result from spells casted during the combat"

that should be check, is it ALWAYS that behaviour correct?

@Killyana
Copy link
Member

Killyana commented Jun 8, 2015

Yes when a npc evade he must loose all the auras except the ones set on spawn, of course for pets and guardians all the aura must remain (but still need confirmation)

@mik1893
Copy link
Contributor Author

mik1893 commented Jun 8, 2015

a pet or guardian never goes in evade, actually, so it wont be a problem

@Killyana
Copy link
Member

Killyana commented Jun 8, 2015

For Pet it's fine, but we need to fix the guardians.

@mik1893
Copy link
Contributor Author

mik1893 commented Jun 8, 2015

ok, this should be definitive. please test it!

@Killyana
Copy link
Member

Killyana commented Jun 8, 2015

On a recent commit (I cannot find it) Auras from Creature_addon are no longer removed on evade, still in some cases when the aura is set on spawn with SAI, must be fixed on DB by changing the event on reset or moving the aura to the creature_addon.

But for the guardians issue it must be fixed as they loose auras on evade, I opened this issue for guardians when the evade issue wasn't fixed for auras from creature_addon so thought it was related.

This commit changes nothing to the actual behavior, sorry for the wasted time.

@mik1893
Copy link
Contributor Author

mik1893 commented Jun 9, 2015

not needed anymore

@mik1893 mik1893 closed this Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants